<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<html>
<head>
  <title>行业基础信息列表</title>
</head>

<body>
  <c:if test="${not empty message}">
    <div id="message" class="alert alert-success"><button data-dismiss="alert" class="close">×</button>${message}</div>
  </c:if>

  <table id="contentTable" class="table table-striped table-bordered table-condensed">
    <thead><tr><th width="40%">一级</th><th width="40%">二级</th><th width="20%">管理</th></tr></thead>
    <tbody>
    <c:forEach items="${industries}" var="industry">
      <tr>
        <c:if test="${empty industry.parent}">
          <td>${industry.id}:&nbsp;&nbsp;${industry.name}</td>
          <td></td>
          <td></td>
        </c:if>
        <c:if test="${not empty industry.parent}">
          <td></td>
          <td>${industry.id}:&nbsp;&nbsp;${industry.name}</td>
          <td></td>
        </c:if>
      </tr>
    </c:forEach>
    </tbody>
  </table>
</body>
</html>
